package com.weixing.mall.provider.model.vo.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.provider.model.enums.IsPageSiteEunm;
import lombok.Data;

import java.util.Date;

/**
 * @Description TODO <br/>
 * @Version 1.0
 **/
@Data
public class MediaAdvertsingED {

    @ExcelProperty("媒体分类")
    private String mediaTypeName;

    @ExcelProperty("媒体名称")
    private String platformName;

    @ExcelProperty("广告员")
    private String directorName;

    @ExcelProperty("版面位置")
    @ExcelIgnore
    private IsPageSiteEunm pageSite;
    @ExcelProperty("版面位置")
    private String pageSiteStr;

    @ExcelProperty("标价")
    private Integer price;

    @ExcelProperty("投放日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date launchDate;

    @ExcelProperty("预约起始日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date startOrderDate;

    @ExcelProperty("预约结束日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date endOrderDate;

    @ExcelProperty("预约者")
    private String orderdAgentName;

    @ExcelProperty("文章标题")
    private String articleTitle;
    
    @ExcelProperty("阅读量")
    private Integer readAmount;

    @ExcelProperty("粉丝数")
    private Integer fans;

    private void setPageSite(IsPageSiteEunm pageSite){
        this.pageSite = pageSite;
        if(pageSite != null){
            this.pageSiteStr = pageSite.getDesp();
        }
    }

}
